package collection;

import java.util.Iterator;
import java.util.LinkedList;

public class LinkedListTest  {
	public static void main(String[] args) {
		LinkedList<String> al = new LinkedList<String>();
		al.add("vibhanshu");
		al.add("sitanashu");
		Iterator<String> itr = al.iterator();
		while(itr.hasNext()){
			System.out.println(itr.next());
		}
	}
	
	}


